﻿@{
    ViewBag.Title = "ViewLanguage";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}
<table style="table-layout:fixed;" width="100%">
    <tr>
        <td style="width: 100%;height:500px" valign="top">
            @Html.LOBHtmlHelper().GridView("grvFormLabels", "FormLabels", "SYS_FormLabels", true, false, new { style = "height:500px" }, "FormName.Equals(@0)&&Language.Equals(@1)", @ViewBag.FormNameShow + "|" + LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Language, true)
        </td>
    </tr>
</table>


<div  style="text-align:right">
    <div class="buttons">
        <button id="btnSave" class="positive" onclick= "SavePopup()">
            <img src="@Html.BaseUrl()Content/images/toolbar/save.png" alt="" /> 
            Save Private
        </button> 
        
        <button id="btnSave" class="positive" onclick= "SavePopup()">
            <img src="@Html.BaseUrl()Content/images/toolbar/save.png" alt="" /> 
            Save Public
        </button> 
        
        <button class="positive" onclick= "Close()">
            <img src="@Html.BaseUrl()Content/images/toolbar/close.png" alt="" /> 
            Close
        </button> 
    </div>
</div>

<script>
    var codeBasePopup = new CodeBasePopup();
    $(document).ready(function () {
        codeBasePopup.init('1', "", "@Url.Action("Save","FormLabel")", '', "grvFormLabels",0,40);
        codeBasePopup.SetEntityDetail('SYS_FormLabels');
    });

    function Close()
    {
        CloseWin(0, idWindow);
    }

    function SavePopup() {
        codeBasePopup.SavePopup();
    }

    function PopupSaveCompleted()
    {
        CloseWin(1, idWindow);
        return true;
    }
</script>